package com.sheng.whyclass.work.model;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;

/**
 * Created by Administrator on 2016/4/6.
 */
public class AnswerResp {


    /**
     * code : 1
     */

    private int code;
    public AnswerData info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static AnswerResp getFromJson(String json) {
        if (json == null) {
            return null;
        }
        Gson gson = new Gson();
        AnswerResp info = null;
        try {
            info = gson.fromJson(json, AnswerResp.class);
        } catch (JsonSyntaxException jsonSyntaxException) {
        }
        return info;
    }

}
